package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.ArrayList;

@Mapper
public interface UserMapper {
    ArrayList<User> getAllUser();
    User getUserByUid(Integer uid);
    int addUser(User user);
    User getUserByOpenId(String openid);
    int deleteUser(Integer uid);
    int updateUser(User user);
    User getUserByEmail(String email);
    int bindWx(@Param("uid") Integer uid,@Param("openid") String openid);
    int updateHeadSrc(@Param("uid")Integer uid,@Param("headsrc") String headsrc);
}
